<?php

class RandomContent extends CWidget
{
    public function init()
    {
		//TODO read out from database the image the alt .... and which....
		$image = "/files/bar_fotos/praktika.jpg";
		$link = "/files/bar_fotos/praktika.jpg";
		$description = "/files/bar_fotos/praktika.jpg";
		?>
		<div class="view-index">
			<a href="<?php echo $link;?>" class="thumbnail" rel="tooltip" data-title="<?php echo $description; ?>">
			<img src="<?php echo $image; ?>" alt="" width="100%" height="100%" >
			</a>
		</div>
		<?php
    }
 
    public function run()
    {
        // this method is called by CController::endWidget()
    }
}

?>
